Skip to content

Align getLoadState/loadCollection/loadPartitions with PyMilvus#1885

Merged
sre-ci-robot merged 1 commit into
milvus-io:masterfrom
yhmo:mm
Jun 3, 2026
Merged

Align getLoadState/loadCollection/loadPartitions with PyMilvus#1885
sre-ci-robot merged 1 commit into
milvus-io:masterfrom
yhmo:mm

Conversation

@yhmo
Copy link
Copy Markdown
Contributor

@yhmo yhmo commented Jun 3, 2026

No description provided.

Copilot AI review requested due to automatic review settings June 3, 2026 07:01
@sre-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: yhmo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Java v2 SDK’s collection/partition load APIs to better align with PyMilvus behavior by applying RPC deadlines during load operations, using loading-progress polling for synchronous waits, and simplifying the load-state response surface.

Changes:

  • Add per-RPC deadlines (based on request timeout) for loadCollection / refreshLoad / loadPartitions and associated progress checks.
  • Update synchronous waiting logic to poll getLoadingProgress and optionally use refreshProgress when “refresh load” semantics are requested.
  • Remove refreshProgress from GetLoadStateResp and adjust the Docker test accordingly.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
sdk-core/src/test/java/io/milvus/v2/client/MilvusClientV2DockerTest.java Updates assertions to match the simplified GetLoadStateResp shape.
sdk-core/src/main/java/io/milvus/v2/service/partition/PartitionService.java Adds deadline support to load/refresh progress RPCs and updates partition load wait loop.
sdk-core/src/main/java/io/milvus/v2/service/collection/response/GetLoadStateResp.java Removes refreshProgress field and builder API from the response type.
sdk-core/src/main/java/io/milvus/v2/service/collection/CollectionService.java Adds deadline support, refactors wait logic to use loading progress, and simplifies load-state progress reporting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sdk-core/src/main/java/io/milvus/v2/service/collection/CollectionService.java Outdated
Comment thread sdk-core/src/main/java/io/milvus/v2/service/partition/PartitionService.java Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Comment thread sdk-core/src/test/java/io/milvus/v2/BaseTest.java
Signed-off-by: yhmo <yihua.mo@zilliz.com>
@mergify mergify Bot added ci-passed and removed ci-passed labels Jun 3, 2026
@yhmo yhmo added the lgtm label Jun 3, 2026
@sre-ci-robot sre-ci-robot merged commit 0ee4bed into milvus-io:master Jun 3, 2026
6 checks passed
@yhmo yhmo deleted the mm branch June 3, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants